package com.mmall.seckill.service;

import com.mmall.seckill.vo.GoodsVo;

import java.util.List;

/**
 * Created by megan on 2018/6/18.
 * 商品service
 */
public interface GoodsService {

    /**
     * 商品列表页
     * @return
     */
    List<GoodsVo> listGoodsVo();

    /**
     * 商品详情
     * @param id
     * @return
     */
    GoodsVo getGoodsVoByGoodsId(long id);

    /**
     * 减库存
     * @param goods
     */
    boolean placeTheOrder(GoodsVo goods);
}
